<?php
/**
 * Created by PhpStorm.
 * User: 小蛮哼哼哼
 * Email: 243194993@qq.com
 * Date: 2021/11/11
 * Time: 14:02
 * motto: 现在的努力是为了小时候吹过的牛逼！
 */

declare(strict_types=1);

namespace app\common\validate;

class System extends Base
{
    protected $rule = [
        "sitename" => "require|max:32",
        "icon" => "require|max:128",
        "version" => "require",
        "copyright" => "require"
    ];
    protected $message = [
        "sitename.require" => "网站名称不能为空",
        "sitename.max" => "网站名称字段太长",
        "icon.require" => "请上传浏览器图标",
        "icon.max" => "浏览器图标错误",
        "version.require" => "版本号错误",
        "copyright.require" => "版权信息错误"
    ];
    protected $scene = [
        'add' => ["sitename", "icon", "version", "copyright"]
    ];
}